{% extends "layout.html" %}
{% block title %}{{ rst.title }}{% endblock %}
{% block body %}
  {%- if not config.hide_title %}
  {{ rst.html_title }}
  {%- endif %}
  {% if ctx.pub_date %}
  <p class=date>written on {{ format_date(ctx.pub_date, format='full') }}
  {% endif %}

  {{ rst.fragment }}

  {% if ctx.tags %}
  <p class=tags>This entry was tagged
    {% for tag in ctx.tags|sort(case_sensitive=true) %}
      {%- if not loop.first and not loop.last %}, {% endif -%}
      {%- if loop.last and not loop.first %} and {% endif %}
      <a href="{{ link_to('tag', tag=tag) }}">{{ tag }}</a>
    {%- endfor %}
  {% endif %}

  {% if 'disqus' in config.active_modules %}
    {{ get_disqus() }}
  {% endif %}
{% endblock %}
